package com.itheima.health.service;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ServiceApplication {

    public static void main(String[] args) throws IOException {
        //创建核心容器,远程调用，连接zookeeper
       new ClassPathXmlApplicationContext("classpath:applicationContext-service.xml");

        //阻塞(为了阻止main方法提前结束，所以开启了阻塞)
        System.in.read();
    }
}
